package com.gxa.service;

import com.gxa.pojo.Department;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    //分页接口
    List<Department> findAllDepartmenByPage(Integer page,Integer limit);
    //查询所有数据
    Integer findAllDepartment();
    //列出所有数据
    List<Department> findAll();

    /**
     * 添加部门
     * @param map
     * @return
     */
    int insertDepartment(Map map);

    Integer updateDepartmentById(Map map);

    Integer deleteDepartmentById(Integer id);

    Integer departmentState(Map map);

    String findDepartmentByName(String name);
}